package com.blackman.skcrawler.common.util;

import java.util.UUID;

/**
 * 主键id生成工具
 * 
 * @author zjb
 * @date 2014-5-28 15:26
 */
public class UUIDUtil {

	/**
	 * UUID
	 * 
	 * @return
	 */
	public static String getUniquekey() {
		String unqueKeyId = "";
		try {
			String uuid = UUID.randomUUID().toString().replace("-", "");
			unqueKeyId = uuid;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return unqueKeyId;
	}

	public static void main(String[] args) {
		System.out.println(getUniquekey());
	}
}
